require 'rubygems'
require 'sequel'
class Spike

  def initialize
    @db = Sequel.connect('mysql://root@localhost/argus')
#    @db.create_table(:test) do
#      primary_key :id, :type=>Integer
#      String :a
#    end

    @items = @db[:test]
    @items.insert(:a => 'test')
  end

  def put_sth
    dataset = @db[:test]
    dataset[:id => 1][:a]
#    dataset[]
  end
end
